﻿using System;
using StudentWeb.Common;

namespace StudentWeb.Model
{
	/// <summary>
	/// ProductData
	/// </summary>
    [Serializable]
	public class ProductData
	{
		/// <summary>
		/// ProductID
        /// </summary>
        [FieldName("ProductID")]		
		public int ProductID
		{
			get;
			set;
		}
        
		/// <summary>
		/// ProductImage
        /// </summary>
        [FieldName("ProductImage")]		
		public string ProductImage
		{
			get;
			set;
		}
        
		/// <summary>
		/// SellerId
        /// </summary>
        [FieldName("SellerId")]		
		public string SellerId
		{
			get;
			set;
		}
        
		/// <summary>
		/// ProductState
        /// </summary>
        [FieldName("ProductState")]		
		public int? ProductState
		{
			get;
			set;
		}
        
		/// <summary>
		/// ProductNo
        /// </summary>
        [FieldName("ProductNo")]		
		public string ProductNo
		{
			get;
			set;
		}
        
		/// <summary>
		/// UserId
        /// </summary>
        [FieldName("UserId")]		
		public int? UserId
		{
			get;
			set;
		}
        
		/// <summary>
		/// ProductName
        /// </summary>
        [FieldName("ProductName")]		
		public string ProductName
		{
			get;
			set;
		}
        
		/// <summary>
		/// ProductInfo
        /// </summary>
        [FieldName("ProductInfo")]		
		public string ProductInfo
		{
			get;
			set;
		}
        
		/// <summary>
		/// ProductKind
        /// </summary>
        [FieldName("ProductKind")]		
		public string ProductKind
		{
			get;
			set;
		}
        
		/// <summary>
		/// ProductCategory
        /// </summary>
        [FieldName("ProductCategory")]		
		public string ProductCategory
		{
			get;
			set;
		}
        
		/// <summary>
		/// ProductPublishdate
        /// </summary>
        [FieldName("ProductPublishdate")]		
		public DateTime ProductPublishdate
		{
			get;
			set;
		}
        
		/// <summary>
		/// Stock
        /// </summary>
        [FieldName("Stock")]		
		public int? Stock
		{
			get;
			set;
		}
        
		/// <summary>
		/// ProductPrice
        /// </summary>
        [FieldName("ProductPrice")]		
		public decimal ProductPrice
		{
			get;
			set;
		}
        
		/// <summary>
		/// SellBydate
        /// </summary>
        [FieldName("SellBydate")]		
		public string SellBydate
		{
			get;
			set;
		}
        
		/// <summary>
		/// RegDateTime
        /// </summary>
        [FieldName("RegDateTime")]		
		public DateTime RegDateTime
		{
			get;
			set;
		}
        
		/// <summary>
		/// RegUserID
        /// </summary>
        [FieldName("RegUserID")]		
		public int? RegUserID
		{
			get;
			set;
		}
        
		/// <summary>
		/// EditDateTime
        /// </summary>
        [FieldName("EditDateTime")]		
		public DateTime EditDateTime
		{
			get;
			set;
		}
        
		/// <summary>
		/// EditUserID
        /// </summary>
        [FieldName("EditUserID")]		
		public int? EditUserID
		{
			get;
			set;
		}
        
        public ProductData Clone()
        {
            return (ProductData)this.MemberwiseClone();
        }
        
        public ProductData()
        {
            ProductImage = string.Empty;
            SellerId = string.Empty;
            ProductNo = string.Empty;
            ProductName = string.Empty;
            ProductInfo = string.Empty;
            ProductKind = string.Empty;
            ProductCategory = string.Empty;
            ProductPublishdate = ConvertHelper.DefaultDate;
            SellBydate = string.Empty;
            RegDateTime = ConvertHelper.DefaultDate;
            EditDateTime = ConvertHelper.DefaultDate;
        }
	}
}
